import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/ppt'
        },
        {
            path: '/ppt',
            component: resolve => require(['../components/page/ppt.vue'], resolve),
            meta: { title: '系统首页' }
        },
        {
            path: '/xls',
            component: resolve => require(['../components/page/xls.vue'], resolve)
        },
        {
            path: '/doc',
            component: resolve => require(['../components/page/doc.vue'], resolve)
        },
        {
            path: '*',
            redirect: '/404'
        }
    ]
})
